<%--
  Created by IntelliJ IDEA.
  User: 刘洪兆0720
  Date: 2022/5/1
  Time: 9:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>上机考试系统</title>
    <style>
        .inputclass {
            height: 30px;
            width: 180px;
        }
    </style>
</head>
<body>
<jsp:include page="admin_head.jsp"></jsp:include>
<div class="container">
    <div class="alert navbar-inverse"
         style="background-color: #eeeeee; margin-top: 20px;">
        <strong style="align-content: center; font-size: 18px">修改系统配置</strong>
        <form id="dataForm" class="main">
            <table>
                <tr>
                    <td align="right"><b>后台任务时间间隔</b></td>
                    <td style="padding-left: 20px"><input type="text" name="taskSplitTime" id="taskSplitTime" value="30"
                                                          class="form-control inputclass"></td>
                </tr>
                <tr>
                    <td></td>
                    <td style="padding-left: 20px">制定扫描考试信息的间隔时间，单位时间为分钟</td>
                </tr>
                <tr>
                    <td>&nbsp</td>
                </tr>
                <tr>
                    <td align="right">分页查询记录条数</td>
                    <td style="padding-left: 20px"><input type="text" name="splitPageCount" value="30"
                                                          class="form-control inputclass"></td>
                </tr>

                <tr>
                    <td></td>
                    <td style="padding-left: 20px">指定分页查询时每页显示记录数的默认值（查询页面中可以更改）</td>
                </tr>
                <tr>
                    <td>&nbsp</td>
                </tr>
                <tr>
                    <td align="right">手动开启考试时间阈值</td>
                    <td style="padding-left: 20px"><input type="text" name="startSplitTime" value="15"
                                                          class="form-control inputclass"></td>
                </tr>
                <tr>
                    <td></td>
                    <td style="padding-left: 20px">指定手工开启考试时允许的最大提前量，单位为分钟</td>
                </tr>
                <tr>
                    <td>&nbsp</td>
                </tr>
                <tr>
                    <td align="right">上传文件字节数上限</td>
                    <td style="padding-left: 20px"><input type="text" name="minUploadSize" value="131072"
                                                          class="form-control inputclass"></td>
                </tr>
                <tr>
                    <td></td>
                    <td style="padding-left: 20px">指定上传文件的长度上限（字节），高于此值发出警告</td>
                </tr>
                <tr>
                    <td>&nbsp</td>
                </tr>
                <tr>
                    <td align="right">上传文件字节数下限</td>
                    <td style="padding-left: 20px"><input type="text" name="maxUploadSize" value="512"
                                                          class="form-control inputclass"></td>
                </tr>
                <tr>
                    <td></td>
                    <td style="padding-left: 20px">指定上传文件的下限（字节），低于此值发出警告</td>
                </tr>
                <tr>
                    <td>&nbsp</td>
                </tr>
                <tr>
                    <td>&nbsp</td>
                </tr>
                <tr>
                    <td></td>
                    <td style="padding-left: 20px">
                        <button type="submit" id="submit" class="btn btn-info">提交修改
                        </button>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
</body>

<script type="text/javascript">
    //初始化
    $("#submit").click(function () {
        $.ajax({
            url: "${path}/admin_save_configs",
            type: "POST",
            data: $("#dataForm").serialize(),
            success: function (result) {
                alert(result.msg);
            }
        });
    });
</script>
</html>